#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{

    int a=0,number=0;
    srand(time(0));
    int count = rand()%100;
    printf("I have thought a number\n");
    do{
    printf("Enter the number of which you guess\n");
    scanf("%d",&a);
    number ++;
     if (a > count) {
	  printf("You have input a large number\n");
	 	 
     }
	 else if  (a < count)
	{ printf("You have inputed a small number\n");
           }
    }
       while (a != count);
    printf("You get a right number and only use %d times", number);
      return 0 ;
   }













